import startSearchModel from "@/config/startSearchModel";

export default () => {
    return {
        submitText: '修改',
        size: 'default',
        labelWidth: 80,
        index: true,
        menuAlign: 'center',
        menuPosition: "right",
        align: "center",
        searchIndex: 2,
        searchMenuSpan: 6,
        searchIcon: true,
        menuType: "menu",
        permissionBtn: {
            addBtn: 'sys:dict:add',
            editBtn: 'sys:dict:edit',
            viewBtn: 'sys:dict:info',
            delBtn: 'sys:dict:delete',
        },
        column: [
            {
                label: '名称',
                span: 24,
                prop: 'dictName',
                search: true,
                searchModel: startSearchModel.LIKE_RIGHT,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '编码',
                span: 24,
                prop: 'dictCode',
                search: true,
                searchModel: startSearchModel.LIKE_RIGHT,
                rules: [{
                    required: true,
                    trigger: "blur"
                }],
                addDisplay: true,
                editDetail: true,
            },
            {
                label: '描述',
                span: 24,
                prop: 'dictDesc',
                search: true,
                type: "textarea",
                maxLength: 100,
              

            },


        ]
    }
}
